package com.fuhe.chen.vendingmachine.dao;

import com.fuhe.chen.vendingmachine.pojo.CommodityPicture;
import com.fuhe.chen.vendingmachine.pojo.CommoditySpecification;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommodityPictureDao {

    List<CommodityPicture> findByCommodityId(@Param("commodity_id") Integer commodity_id);

    void add(CommodityPicture picture);

    void update(CommodityPicture picture);

    void delete(@Param("id") Integer id);
}
